package edu.kjxy.worker0312;

import java.util.Scanner;

public class worker03 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("请输入1,2,3,4...,0 ,1,2,3,4对应分别打印东南西北，0退出");
		while(true)
		{
			int num = in.nextInt();
			if(num == 0) break;
			if(num == 1) System.out.println("东");
			else if(num == 2) System.out.println("南");
			else if(num == 3) System.out.println("西");
			else if(num == 4) System.out.println("北");
			else System.out.println("输入错误！");
		}
		in.close();
		
	}

}
